home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / quel / integrity.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.2 KB  |  42 lines

  1.  
  2.  
  3.  
  4.  
  5.      INTEGRITY(QUEL)              2/7/79               INTEGRITY(QUEL)
  6.  
  7.  
  8.  
  9.      NAME
  10.           integrity - define integrity constraints
  11.  
  12.      SYNOPSIS
  13.           _d_e_f_i_n_e _i_n_t_e_g_r_i_t_y _o_n var _i_s qual
  14.  
  15.      DESCRIPTION
  16.           The _i_n_t_e_g_r_i_t_y statement adds an integrity constraint for the
  17.           relation  specified by _v_a_r.  After the constraint is placed,
  18.           all updates to the relation must satisfy _q_u_a_l.  _Q_u_a_l must be
  19.           true  when the _i_n_t_e_g_r_i_t_y statement is issued or else a diag-
  20.           nostic is issued and the statement is rejected.
  21.  
  22.           In the current implementation, _i_n_t_e_g_r_i_t_y constraints are not
  23.           flagged  -  bad  updates  are simply (and silently) not per-
  24.           formed.
  25.  
  26.           _Q_u_a_l must be a single variable  qualification  and  may  not
  27.           contain any aggregates.
  28.  
  29.  
  30.           _i_n_t_e_g_r_i_t_y statement may be issued  only  by   the   relation
  31.           owner.
  32.  
  33.      EXAMPLE
  34.           /* Ensure all employees have positive salaries */
  35.             range of e is employee
  36.             define integrity on e is e.salary > 0
  37.  
  38.      SEE ALSO
  39.           destroy(quel)
  40.  
  41.  
  42.